/**
 * Created by Cheney on 2017/9/9.
 */
const Client = require("../src/net/Client")

let client = new Client();

client.connect(4700, "localhost" , () => {

    client.send({
        cmd : "test"
    })

})

// 为客户端添加“data”事件处理函数
// data是服务器发回的数据
client.on('data', function(data) {
    console.log(data)
});